package com.zzb.object;

public class Manager {

    //属性
    private String name;//姓名
    private int id;//工号
    private int salary;//工资
    private int bonus;//奖金

    //构造器
    public Manager() {
    }

    public Manager(String name, int id, int salary, int bonus) {
        this.name = name;
        this.id = id;
        this.salary = salary;
        this.bonus = bonus;
    }

    //方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    public void work() {
        System.out.println("工号为" + getId() + "基本工资为" + getSalary() + "奖金为" + getBonus() + "的项目经理正在努力的做着管理工作,分配任务,检查员工提交上来的代码.....");
    }


}
